<!DOCTYPE html>
<%@page pageEncoding="UTF-8"%>
<html>
<!-- 
  - Author(s): waffie
  - Date: 2020-08-21 15:55:35
  - Description:
-->
<head>
<title>所有项目</title>
<%@include file="/resource/template1.jsp"%>
</head>
<body class="fullBody">
    <div class="nui-splitter sPage" style="width:100%;height:100%;">
        <div class="leftBar" size="220" maxSize="500" minSize="160" showCollapseButton="true" style="padding:5px;">
        	<ul id="tree" class="nui-tree" url="../data/data_tree.txt"
                showTreeIcon="true" textField="text" idField="id" parentField="pid" resultAsTree="false">        
            </ul>
        </div>
        <div class="content">
	        <div class="toolbar">
	            <a class="nui-button" iconCls="icon-add" plain="true">添加项目</a>
	            <span class="separator"></span>
	            <a class="nui-button" iconCls="icon-edit" plain="true">编辑项目</a>
	            <span class="separator"></span>
	            <a class="nui-button" iconCls="icon-remove" plain="true">删除项目</a>
	        </div>
	        <!-- datagrid -->
		    <div class="nui-fit" style="margin:5px;">
		        <div id="datagrid" class="nui-datagrid" style="width:100%;height:100%;" allowAlternating="true"
		            url="../data/data_grid.txt" idField="id" sizeList="[10,20,30,50]" pageSize="10">
		            <div property="columns">
		                <div type="indexcolumn" width="30" headerAlign="center">序号</div>
		                <div field="c1" width="120" headerAlign="center">项目名称</div>
		                <div field="c2" width="120" headerAlign="center">项目分类</div>
		                <div field="c3" width="60" headerAlign="center" align="center">激活需求</div>
		                <div field="c4" width="60" headerAlign="center" align="center">已变更需求</div>
		                <div field="c5" width="60" headerAlign="center" align="center">草稿需求</div>
		                <div field="c6" width="60" headerAlign="center" align="center">已关闭需求</div>
		                <div field="c7" width="60" headerAlign="center" align="center">剩余任务</div>
		                <div field="c8" width="60" headerAlign="center" align="center">测试用例</div>
		                <div field="c9" width="60" headerAlign="center" align="center">未解决Bug</div>
		                <div field="c10" width="60" headerAlign="center" align="center">未指派Bug</div>
		                <div field="c11" width="60" headerAlign="center" align="center">发布数</div>
		            </div>
		        </div> 
		    </div>
	        <!-- 查询 -->
		    <div class="search-wrap">
				<table class="form-table">
					<tr class="bor">
						<th>项目名称</th>
						<td>
							<input name="username" class="nui-textbox" required="true" />
						</td>
						<th>项目分类</th>
						<td>
							<input name="department" showNullItem="true" class="nui-combobox" value="cn" textField="text" valueField="id" />
						</td>
					</tr>
				</table>
				<div class="btns-center">
				    <a class="nui-button" iconCls="icon-search">查询</a>
				    <a class="nui-button" iconCls="icon-reload">重置</a>
				</div>
			</div>
        </div>        
    </div>
<script type="text/javascript">
nui.parse();

// 页面加载完成后执行
$(function(){
	nui.get("datagrid").load();
});
</script>
</body>
</html>